﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Public.master" AutoEventWireup="true" CodeFile="Wallpaper.aspx.cs" Inherits="Resources_Wallpaper" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script src="<%= siteRoot %>Javascripts/Common/ApplicationCommon.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" Runat="Server">
    <div class="section-head">
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td class="sub-head-left">&nbsp;</td>
                <td>Wallpapers</td>
                <td class="sub-head-right" align="right">&nbsp;</td>
            </tr>
        </table>
    </div>
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="rounded_left_top"></td>
            <td class="rounded_top"></td>
            <td class="rounded_right_top"></td>
        </tr>
        <tr>
            <td class="rounded_left"></td>
            <td>
                <asp:DataList ID="dtlWallpapers" runat="server" OnItemDataBound="DataList_ItemDataBound" HeaderStyle-Font-Bold="true" 
                    CellPadding="0" CellSpacing="0" Width="100%" RepeatColumns="3" RepeatDirection="Horizontal" RepeatLayout="Table" 
                    UseAccessibleHeader="true">
                    <ItemStyle VerticalAlign="Top" />
                    <ItemTemplate>
                        <div>
                            <div class="wallpaper_list">
                                <asp:Image ID="imgThumbnail" runat="server" ImageUrl='<%# Eval("ThumbnailFileUrl") %>' />
                            </div>
                            <div class="wallpaper_list">
                                <asp:Repeater ID="rptSizeList" runat="server" OnItemDataBound="Size_DataBound" >
                                    <HeaderTemplate><ul class="just-list"></HeaderTemplate>
                                    <ItemTemplate>
                                        <li><asp:HyperLink ID="hlkSizeLink" runat="server" Text='<%# Eval("SizeName") %>' NavigateUrl='#'></asp:HyperLink></li>
                                    </ItemTemplate>
                                    <FooterTemplate></ul></FooterTemplate>
                                </asp:Repeater>
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:DataList>
            </td>
            <td class="rounded_right"></td>
        </tr>
        <tr>
            <td class="rounded_left_bottom"></td>
            <td class="rounded_bottom"></td>
            <td class="rounded_right_bottom"></td>
        </tr>
    </table>
    <div class="pager-area">
        <asp:Repeater ID="rptPager" runat="server" OnItemDataBound="Pager_DataBound">
            <ItemTemplate>
                <asp:LinkButton ID="lkbPageIndex" runat="server" CssClass="page-index" Width="24px" Height="24px"
                    Text='<%# Container.DataItem.ToString() %>' CommandName="PagingCommand"
                    CommandArgument='<%# Container.DataItem %>'
                    OnCommand="Page_Change"></asp:LinkButton>
            </ItemTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContent" Runat="Server">
</asp:Content>

